AddCSLuaFile()

if SERVER then
	util.AddNetworkString( "PlayerInteractedSend" )
	util.AddNetworkString( "PlayerInteractedReceived" )
	AddCSLuaFile("shared.lua")
else
   ENT.PrintName = "ent_interactible"
end
 
ENT.Type = "anim"
ENT.Model = Model("models/props_junk/Rock001a.mdl")
ENT.Name = "Glinting Stone"
ENT.InteractDistance = 128
ENT.ObjectID = -1
ENT.Type =  nil
ENT.CustomPos = nil
ENT.CustomAng = nil
ENT.Interactable = true
ENT.ParticlesCreated = false
ENT.InteractParticles = "interactible"
ENT.RemoveOnInteract = false
ENT.UseOnce = true
ENT.Loot = false
 
 
function ENT:Initialize()
	self.Entity:SetModel(self.Model)
	self.Entity:PhysicsInit(SOLID_BBOX)
	self.Entity:SetMoveType( MOVETYPE_NONE )
	ParticleEffect( self.InteractParticles, self:GetPos(), self:GetAngles(), self )
	self.ParticlesCreated = true
end

function ENT:Interact(ply)
	net.Start("PlayerInteractedSend")
	net.WriteEntity(ply)
	net.SendToServer()
end

